• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..26-Aug-2021-

CHANGELOG.mdH A D26-Aug-202140 42

README.mdH A D26-Aug-20213.1 KiB7649

autorest.mdH A D26-Aug-2021383 108

build.goH A D26-Aug-2021337 81

ci.ymlH A D26-Aug-2021313 1613

go.modH A D26-Aug-2021242 107

go.sumH A D26-Aug-20212 KiB2120

go_mod_tidy_hack.goH A D26-Aug-2021515 132

zz_generated_appservicecertificateorders_client.goH A D26-Aug-202169.1 KiB1,3461,160

zz_generated_appserviceenvironments_client.goH A D26-Aug-2021161.9 KiB3,2412,800

zz_generated_appserviceplans_client.goH A D26-Aug-202190.6 KiB1,9421,691

zz_generated_certificateordersdiagnostics_client.goH A D26-Aug-20219.7 KiB175143

zz_generated_certificateregistrationprovider_client.goH A D26-Aug-20213.5 KiB7956

zz_generated_certificates_client.goH A D26-Aug-202117.4 KiB406340

zz_generated_constants.goH A D26-Aug-202183.7 KiB2,3721,744

zz_generated_deletedwebapps_client.goH A D26-Aug-20219.2 KiB212171

zz_generated_diagnostics_client.goH A D26-Aug-202181.6 KiB1,6611,449

zz_generated_domainregistrationprovider_client.goH A D26-Aug-20213.4 KiB7956

zz_generated_domains_client.goH A D26-Aug-202146.1 KiB1,007860

zz_generated_global_client.goH A D26-Aug-20219.5 KiB213174

zz_generated_kubeenvironments_client.goH A D26-Aug-202121.5 KiB489413

zz_generated_models.goH A D26-Aug-2021684.5 KiB17,60610,249

zz_generated_pagers.goH A D26-Aug-2021226.1 KiB8,2057,302

zz_generated_pollers.goH A D26-Aug-2021110 KiB2,7982,107

zz_generated_provider_client.goH A D26-Aug-202118.5 KiB419342

zz_generated_recommendations_client.goH A D26-Aug-202149.8 KiB987854

zz_generated_resourcehealthmetadata_client.goH A D26-Aug-202119.2 KiB412344

zz_generated_response_types.goH A D26-Aug-2021309.8 KiB7,6034,224

zz_generated_staticsites_client.goH A D26-Aug-2021194 KiB3,7533,263

zz_generated_time_rfc3339.goH A D26-Aug-20211.4 KiB5840

zz_generated_topleveldomains_client.goH A D26-Aug-20218.6 KiB208167

zz_generated_webapps_client.goH A D26-Aug-20211.3 MiB28,68925,164

zz_generated_websitemanagementclient_client.goH A D26-Aug-202148.2 KiB1,001837

README.md

1# Azure Web Module for Go
2
3[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/web/armweb)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/web/armweb)
4
5The `armweb` module provides operations for working with Azure Web.
6
7[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/web/armweb)
8
9# Getting started
10
11## Prerequisites
12
13- an [Azure subscription](https://azure.microsoft.com/free/)
14- Go 1.13 or above
15
16## Install the package
17
18This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management.
19
20Install the Azure Web module:
21
22```sh
23go get github.com/Azure/azure-sdk-for-go/sdk/web/armweb
24```
25
26## Authorization
27
28When creating a client, you will need to provide a credential for authenticating with Azure Web.  The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.
29
30```go
31cred, err := azidentity.NewDefaultAzureCredential(nil)
32```
33
34For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity).
35
36## Connecting to Azure Web
37
38Once you have a credential, create a connection to the desired ARM endpoint.  The `armcore` module provides facilities for connecting with ARM endpoints including public and sovereign clouds as well as Azure Stack.
39
40```go
41con := armcore.NewDefaultConnection(cred, nil)
42```
43
44For more information on ARM connections, please see the documentation for `armcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/armcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/armcore).
45
46## Clients
47
48Azure Web modules consist of one or more clients.  A client groups a set of related APIs, providing access to its functionality within the specified subscription.  Create one or more clients to access the APIs you require using your `armcore.Connection`.
49
50```go
51client := armweb.NewWebAppsClient(con, "<subscription ID>")
52```
53
54## Provide Feedback
55
56If you encounter bugs or have suggestions, please
57[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Web` label.
58
59# Contributing
60
61This project welcomes contributions and suggestions. Most contributions require
62you to agree to a Contributor License Agreement (CLA) declaring that you have
63the right to, and actually do, grant us the rights to use your contribution.
64For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
65
66When you submit a pull request, a CLA-bot will automatically determine whether
67you need to provide a CLA and decorate the PR appropriately (e.g., label,
68comment). Simply follow the instructions provided by the bot. You will only
69need to do this once across all repos using our CLA.
70
71This project has adopted the
72[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
73For more information, see the
74[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
75or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
76additional questions or comments.