Skip to content

Commit

Permalink
Docs edits
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
  • Loading branch information
IanMadd committed Nov 9, 2022
1 parent 9c7ad17 commit bf36666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs-chef-io/content/inspec/resources/azure_blob_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ identifier = "inspec/resources/azure/azure_blob_service Resource"
parent = "inspec/resources/azure"
+++

Use the `azure_blob_service` InSpec audit resource to test the properties of an Azure Blob Service.
Use the `azure_blob_service` Chef InSpec audit resource to test the properties of an Azure Storage account’s Blob service.

## Azure REST API Version, Endpoint, and HTTP Client Parameters

Expand Down Expand Up @@ -82,7 +82,7 @@ end
`type`
: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Also, refer to [Azure documentation](https://learn.microsoft.com/en-us/rest/api/storagerp/blob-services/get-service-properties?tabs=HTTP) for other properties available. Any attribute in the response may be accessed with the key names separated by dots (`.`).
See [Azure's documentation on Blob service](https://learn.microsoft.com/en-us/rest/api/storagerp/blob-services/get-service-properties?tabs=HTTP) for a full list of available properties. Any attribute in the response may be accessed with the key names separated by dots (`.`).

## Examples

Expand Down Expand Up @@ -110,13 +110,14 @@ This InSpec audit resource has the following special matchers. For a full list o

### exists

The control passes if the filter returns at least one result. Use `should_not` if you expect zero matches.

```ruby
describe azure_blob_service(resource_group: 'RESOURCE_GROUP', storage_account_name: 'STORAGE_ACCOUNT_NAME') do
it { should exist }
end
```

### not_exists

```ruby
describe azure_blob_service(resource_group: 'RESOURCE_GROUP', storage_account_name: 'STORAGE_ACCOUNT_NAME') do
Expand Down
6 changes: 4 additions & 2 deletions docs-chef-io/content/inspec/resources/azure_blob_services.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ identifier = "inspec/resources/azure/azure_blob_services Resource"
parent = "inspec/resources/azure"
+++

Use the `azure_blob_services` InSpec audit resource to test the properties and configuration of multiple Azure Blob Service.
Use the `azure_blob_services` Chef InSpec audit resource to test the properties and configuration of multiple Azure storage accounts' Blob services.

## Azure REST API Version, Endpoint, and HTTP Client Parameters

Expand Down Expand Up @@ -46,7 +46,7 @@ end
: **Field**: `id`

`names`
: The name of the resource
: The name of the resource.

: **Field**: `name`

Expand All @@ -67,6 +67,8 @@ end

{{% inspec_filter_table %}}

See [Azure's documentation on Blob services](https://learn.microsoft.com/en-us/rest/api/storagerp/blob-services/list?tabs=HTTP) for a full list of available properties.

## Examples

### Test that an example Resource Group has the named storage account
Expand Down

0 comments on commit bf36666

Please sign in to comment.